package com.cjjd.c.feature.mine.benefits;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;

import com.cjjd.c.base.BaseActivity;
import com.cjjd.c.feature.home.ewm.ZingActivity;

/**
 * Created by dada on 2017/12/23.
 */

public class BenefitsActivity extends BaseActivity {

    public static void lauch(Context context,String id,String img,String name){
        Intent intent = new Intent();
        intent.putExtra("id",id);
        intent.putExtra("img",img);
        intent.putExtra("name",name);
        intent.setClass(context, BenefitsActivity.class);
        context.startActivity(intent);
    }


    @Override
    public Fragment getContentFragment() {
        BenefitsFragment fragment= new BenefitsFragment();
        Bundle bundle=new Bundle();
        bundle.putString("id",getIntent().getStringExtra("id"));
        bundle.putString("img",getIntent().getStringExtra("img"));
        bundle.putString("name",getIntent().getStringExtra("name"));
        fragment.setArguments(bundle);
        return  fragment;
    }
}
